# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=8

inherit desktop git-r3

DESCRIPTION="Beach Head 2002"
HOMEPAGE=""
EGIT_REPO_URI="https://gitee.com/your-own-os/librungame.git"

LICENSE="unknown"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE=""
RESTRICT="mirror"

DEPEND=""
RDEPEND="games-action/beachhead2002-prog
         dev-python/librungame
         virtual/wine[abi_x86_32]
         app-emulation/dxvk[abi_x86_32]"

src_install() {
	dobin "examples/windows/${PN}/${PN}"

        local res
        for res in 32; do
                newicon -s ${res} "${FILESDIR}/${PN}_${res}x${res}x8.png" "${PN}.png"
        done

	domenu "${FILESDIR}/${PN}.desktop"
}
